package jnote;

import java.io.File;
import javax.swing.filechooser.FileFilter;

public class FileFilterIni extends FileFilter {
    @Override
    public boolean accept(File f) {
        if (f.isDirectory()) {
            return true;
        }
        String fname = f.getName().toLowerCase();
        return fname.endsWith(".ini");
    }

    @Override
    public String getDescription() {
        return "ini file (*.ini)";
    }
}
